@extends('layouts.header')
@section('content')
<div class="page-container">
    <form class="mt-20" id="form" method="POST" enctype="multipart/form-data">
        <span class="btn-upload form-group">
            <input class="input-text upload-url radius" type="text" name="uploadfile-1" id="uploadfile-1" readonly><a href="javascript:void();" class="btn btn-primary radius"><i class="Hui-iconfont">&#xe642;</i> 浏览文件</a>
            <input type="file" multiple name="file" class="input-file">
        </span>
        @csrf
        <span class="btn btn-primary radius" id="sub">提交</span>
    </form>
</div>
<script type="text/javascript">
    $('#sub').on('click',function (event) {
        event.preventDefault();
        let form=$('#form')[0], formData = new FormData(form);
        ajax('post','',formData,'',1,1,false,false);
    })
</script>
@endsection
